/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package otcapp.controlador.jpanels.consultarPiezas;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JTable;

/**
 *
 * @author diego
 */
public class DetallePiezaJPanel extends javax.swing.JPanel {

    /**
     * Creates new form DetallePiezaJPanel
     */
    public DetallePiezaJPanel() {
        initComponents();
        
        tblHistorialSeguimiento.addMouseListener(new MouseAdapter() {

            @Override
            public void mouseClicked(MouseEvent e) {
                int columna = tblHistorialSeguimiento.getSelectedColumn();
                int fila = tblHistorialSeguimiento.getSelectedRow();
                lblNombreCelda.setText(tblHistorialSeguimiento.getColumnName(columna));
                lblValorCelda.setText(tblHistorialSeguimiento.getValueAt(fila, columna).toString());
            }
        });
    }

    public JLabel getLblDestino() {
        return lblDestino;
    }

    public JLabel getLblNombreCelda() {
        return lblNombreCelda;
    }

    public JLabel getLblObservacion() {
        return lblObservacion;
    }

    public JLabel getLblSede() {
        return lblSede;
    }

    public JLabel getLblTipo() {
        return lblTipo;
    }

    public JLabel getLblValorCelda() {
        return lblValorCelda;
    }

    public JLabel getLblemplazamiento() {
        return lblemplazamiento;
    }

    public JLabel getLblexpediente() {
        return lblexpediente;
    }

    public JLabel getLblidentificacion() {
        return lblidentificacion;
    }

    public JLabel getLblinicio() {
        return lblinicio;
    }

    public JLabel getLblinterno() {
        return lblinterno;
    }

    public JTable getTblHistorialSeguimiento() {
        return tblHistorialSeguimiento;
    }

    public JLabel getLblConclusiones() {
        return lblConclusiones;
    }

    public JList getListAsunto() {
        return listAsunto;
    }

    public JList getListConclusiones() {
        return listConclusiones;
    }

    public JLabel getLblFechaEntrada() {
        return lblFechaEntrada;
    }

    public JLabel getLblFechaSalida() {
        return lblFechaSalida;
    }

    public JButton getBtnAtras() {
        return btnAtras;
    }

    public JButton getBtnDarSalidaPieza() {
        return btnDarSalidaPieza;
    }

    public JButton getBtnMovimientoPieza() {
        return btnMovimientoPieza;
    }

    public JButton getBtnEditarPieza() {
        return btnEditarPieza;
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        lblTipo = new javax.swing.JLabel();
        lblexpediente = new javax.swing.JLabel();
        lblidentificacion = new javax.swing.JLabel();
        lblinterno = new javax.swing.JLabel();
        lblemplazamiento = new javax.swing.JLabel();
        lblObservacion = new javax.swing.JLabel();
        lblSede = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        lblConclusiones = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tblHistorialSeguimiento = new javax.swing.JTable();
        jLabel17 = new javax.swing.JLabel();
        lblinicio = new javax.swing.JLabel();
        lblDestino = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        lblNombreCelda = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        lblValorCelda = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        listAsunto = new javax.swing.JList();
        jScrollPane5 = new javax.swing.JScrollPane();
        listConclusiones = new javax.swing.JList();
        jLabel4 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        lblFechaEntrada = new javax.swing.JLabel();
        lblFechaSalida = new javax.swing.JLabel();
        jToolBar2 = new javax.swing.JToolBar();
        btnAtras = new javax.swing.JButton();
        btnEditarPieza = new javax.swing.JButton();
        btnMovimientoPieza = new javax.swing.JButton();
        btnDarSalidaPieza = new javax.swing.JButton();

        jLabel2.setText("Tipo: ");

        jLabel3.setText("Sede:");

        jLabel5.setText("Interno:");

        jLabel6.setText("Expediente:");

        jLabel7.setText("Identificacion:");

        jLabel8.setText("Emplazamiento:");

        jLabel9.setText("Observaciones:");

        lblTipo.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblTipo.setForeground(new java.awt.Color(0, 0, 255));
        lblTipo.setText("tipo_pieza");

        lblexpediente.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblexpediente.setForeground(new java.awt.Color(0, 0, 255));
        lblexpediente.setText("expediente_pieza");

        lblidentificacion.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblidentificacion.setForeground(new java.awt.Color(0, 0, 255));
        lblidentificacion.setText("identificaion_pieza");

        lblinterno.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblinterno.setForeground(new java.awt.Color(0, 0, 255));
        lblinterno.setText("interno_pieza");

        lblemplazamiento.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblemplazamiento.setForeground(new java.awt.Color(0, 0, 255));
        lblemplazamiento.setText("emplazamiento_pieza");

        lblObservacion.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblObservacion.setForeground(new java.awt.Color(0, 0, 255));
        lblObservacion.setText("observacion_pieza");

        lblSede.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblSede.setForeground(new java.awt.Color(0, 0, 255));
        lblSede.setText("sede_pieza");

        jLabel1.setText("Asunto");

        lblConclusiones.setText("Conclusión");

        tblHistorialSeguimiento.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(tblHistorialSeguimiento);

        jLabel17.setText("Inicio:");

        lblinicio.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblinicio.setForeground(new java.awt.Color(0, 0, 255));
        lblinicio.setText("inicio_pieza");

        lblDestino.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblDestino.setForeground(new java.awt.Color(0, 0, 255));
        lblDestino.setText("destino_pieza");

        jLabel20.setText("Destino:");

        jLabel21.setText("Seguimiento");

        jLabel22.setText("Celda Seleccionada: ");

        lblNombreCelda.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblNombreCelda.setText("nombre_celda");

        jLabel24.setText("=");

        lblValorCelda.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblValorCelda.setText("valor_celda");

        listAsunto.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N
        listAsunto.setFocusable(false);
        jScrollPane4.setViewportView(listAsunto);

        listConclusiones.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N
        listConclusiones.setFocusable(false);
        jScrollPane5.setViewportView(listConclusiones);

        jLabel4.setText("Fecha de Entrada:");

        jLabel10.setText("Fecha de Salida:");

        lblFechaEntrada.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblFechaEntrada.setForeground(new java.awt.Color(0, 0, 255));
        lblFechaEntrada.setText("fecha_entrada_pieza");

        lblFechaSalida.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lblFechaSalida.setForeground(new java.awt.Color(0, 0, 255));
        lblFechaSalida.setText("fecha_salida_pieza");

        jToolBar2.setFloatable(false);
        jToolBar2.setMaximumSize(new java.awt.Dimension(2000, 38));
        jToolBar2.setPreferredSize(new java.awt.Dimension(100, 38));

        btnAtras.setIcon(new javax.swing.ImageIcon(getClass().getResource("/otcapp/utiles/imagenes/iconos/Back-30.png"))); // NOI18N
        btnAtras.setToolTipText("Atrás");
        btnAtras.setBorderPainted(false);
        jToolBar2.add(btnAtras);

        btnEditarPieza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/otcapp/utiles/imagenes/iconos/document_pencil_20.png"))); // NOI18N
        btnEditarPieza.setToolTipText("EditarPieza");
        btnEditarPieza.setBorderPainted(false);
        btnEditarPieza.setFocusable(false);
        btnEditarPieza.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditarPieza.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar2.add(btnEditarPieza);

        btnMovimientoPieza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/otcapp/utiles/imagenes/iconos/Paper-arrow-30.png"))); // NOI18N
        btnMovimientoPieza.setToolTipText("Setear Ubicación");
        btnMovimientoPieza.setBorderPainted(false);
        jToolBar2.add(btnMovimientoPieza);

        btnDarSalidaPieza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/otcapp/utiles/imagenes/iconos/3D-Upload-30.png"))); // NOI18N
        btnDarSalidaPieza.setToolTipText("Dar Salida Pieza");
        btnDarSalidaPieza.setBorderPainted(false);
        btnDarSalidaPieza.setFocusable(false);
        btnDarSalidaPieza.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDarSalidaPieza.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar2.add(btnDarSalidaPieza);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblObservacion))
                    .addComponent(jLabel21)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel22)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblNombreCelda)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel24)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblValorCelda))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblTipo))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblFechaEntrada))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblFechaSalida))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblemplazamiento))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblinterno))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel7)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblidentificacion))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel6)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblexpediente))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel17)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblinicio))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel20)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblDestino))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblSede)))
                        .addGap(64, 64, 64)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblConclusiones)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jScrollPane2))
                .addContainerGap())
            .addComponent(jToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(lblTipo)
                    .addComponent(jLabel1)
                    .addComponent(lblConclusiones))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(lblexpediente))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(lblidentificacion))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(lblinterno))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(lblemplazamiento))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(lblSede))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel17)
                            .addComponent(lblinicio))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel20)
                            .addComponent(lblDestino))
                        .addGap(6, 6, 6)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(lblObservacion)))
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(lblFechaEntrada))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(lblFechaSalida))
                .addGap(18, 18, 18)
                .addComponent(jLabel21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblNombreCelda)
                        .addComponent(jLabel24)
                        .addComponent(lblValorCelda))
                    .addComponent(jLabel22))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jScrollPane4, jScrollPane5});

    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAtras;
    private javax.swing.JButton btnDarSalidaPieza;
    private javax.swing.JButton btnEditarPieza;
    private javax.swing.JButton btnMovimientoPieza;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JToolBar jToolBar2;
    private javax.swing.JLabel lblConclusiones;
    private javax.swing.JLabel lblDestino;
    private javax.swing.JLabel lblFechaEntrada;
    private javax.swing.JLabel lblFechaSalida;
    private javax.swing.JLabel lblNombreCelda;
    private javax.swing.JLabel lblObservacion;
    private javax.swing.JLabel lblSede;
    private javax.swing.JLabel lblTipo;
    private javax.swing.JLabel lblValorCelda;
    private javax.swing.JLabel lblemplazamiento;
    private javax.swing.JLabel lblexpediente;
    private javax.swing.JLabel lblidentificacion;
    private javax.swing.JLabel lblinicio;
    private javax.swing.JLabel lblinterno;
    private javax.swing.JList listAsunto;
    private javax.swing.JList listConclusiones;
    private javax.swing.JTable tblHistorialSeguimiento;
    // End of variables declaration//GEN-END:variables
}
